import { http } from '@/utils/https'
import type { reportList, reportDetail,weekReport } from '@/types/report'
/**
 * 获取报告列表
 */
export const getReportListApi = (data: { size: number; start: number; userId: number }) => {
  return http<reportList>({
    url: '/report/list',
    method: 'POST',
    data,
  })
}
/**
 * 获取报告详情
 */
export const getReportDetailApi = (data: { date: string; mtrlId: string }) => {
  return http<reportDetail>({
    url: '/report/detail',
    method: 'POST',
    data,
  })
}
/**
 * 获取周报详情
 */
export const getWeekReportApi = (data: { date: string; mtrlId: string }) => {
  return http<weekReport>({
    url: '/sleepMonitor/weekData',
    method: 'POST',
    data,
  })
}
